/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fmsactionserver.server.logger.logGui;

import fmsactionserver.server.logger.logGui.elements.InputTable;
import fmsactionserver.server.logger.InputLogger;
import fmsactionserver.server.settings.actions.data.InputType;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;

/**
 *
 * @author rbs
 */
public class LogFrame extends JFrame{

    InputTable fmsTable;
    InputTable pocsagTable;
    
    JTabbedPane panel;
    
    public LogFrame(InputLogger logger) {
        
        setLayout(new BorderLayout());
        
        setMinimumSize(new Dimension(400, 400));
        setPreferredSize(new Dimension(400, 400));
        
        fmsTable = new InputTable(InputType.FMS, logger);
        
        pocsagTable = new InputTable(InputType.POCSAG, logger);
        
        panel = new JTabbedPane();
        panel.addTab("FMS", fmsTable);
        panel.addTab("POCSAG", pocsagTable);
        
        add(panel, BorderLayout.CENTER);
        setVisible(true);
    }
    
    
}
